using System.ComponentModel.DataAnnotations;

namespace Medical.Api.Write.Dto.BasicManagement.DeviceDictionaryDto
{
    /// <summary>
    /// 更新设备状态数据传输对象
    /// </summary>
    public class UpdateEquipmentStatusDto
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        [Required(ErrorMessage = "设备ID不能为空")]
        public int Id { get; set; }

        /// <summary>
        /// 状态(0:禁用,1:启用)
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        [Range(0, 1, ErrorMessage = "状态只能是0(禁用)或1(启用)")]
        public int Status { get; set; }
    }
} 